#include<iostream>
#include<string>
using namespace std;
int main(){
    string str,ans;
    cin>>str;
    for(int i=0;i<str.size();i++){
        if(isalpha(str[i]))
            ans.push_back(str[i]);
        else
            ans.append(str[i]-'0'-1,str[i-1]);
    }
    cout<<ans<<endl;
    return 0;
}